﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Public
{
    public class AdvertedProd
    {
        private float saleOff;

        public float SaleOff
        {
            get { return saleOff; }
            set { saleOff = value; }
        }
        private Advertisement advertisement;

        public Advertisement Advertisement
        {
            get { return advertisement; }
            set { advertisement = value; }
        }
        private Product product;

        public Product Product
        {
            get { return product; }
            set { product = value; }
        }

        public AdvertedProd() { }

        public AdvertedProd(Product p, Advertisement a)
        {
            this.advertisement = a;
            this.product = p;
        }
    }
}
